home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13237 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: castle.nando.net!news
  2. From: khelmink@nando.net (Keith Helmink)
  3. Newsgroups: comp.lang.c++,comp.lang.c
  4. Subject: Re: HELP!: Error when trying to use cout in MSVC++ 4.0!
  5. Date: Sun, 24 Mar 1996 13:17:04 GMT
  6. Organization: The Kelton Group, Inc.
  7. Message-ID: <4j3ia6$p9e@castle.nando.net>
  8. References: <4i5kpd$eic@mirv.unsw.edu.au> <13MAR199607405255@erich.triumf.ca>
  9. Reply-To: khelmink@nando.net
  10. NNTP-Posting-Host: grail918.nando.net
  11. X-Newsreader: Forte Free Agent 1.0.82
  12.  
  13. In article <4i5kpd$eic@mirv.unsw.edu.au>, s2139589@cse.unsw.edu.au
  14. (CC) writes...
  15.  
  16. >>Hi,
  17. >> 
  18. >>I am having trouble compiling a very simple program consisting of one
  19. >>line of code in main(). I am using Microsoft Visual C++ Version 4.0 on
  20. >>WIN95.  Basically I am trying to use cout to print a word, however the
  21. >>compiler keeps generating the following error:
  22. >> 
  23. >>E:\Labs\lab1.c(4) : error C2065: 'cout' : undeclared identifier
  24. >>E:\Labs\lab1.c(4) : error C2297: '<<' : bad right operand
  25. >>Error executing cl.exe.
  26. >>lab1.obj - 2 error(s), 0 warning(s)
  27.  
  28. I got similar errors with the Watcom compiler when I spelled:
  29.  
  30. void main()
  31.  
  32. as
  33.  
  34. void Main()
  35.  
  36. hope this helps!
  37.  
  38. keith
  39.  
  40.  
  41.  
  42.  
  43.  
  44. keith
  45.  
  46. khelmink@nando.net
  47.  
  48.